Skip to content

Conversation

@gjcairo
Copy link
Collaborator

@gjcairo gjcairo commented Aug 28, 2025

No description provided.

@gjcairo gjcairo marked this pull request as ready for review September 7, 2025 19:52
}

/// No backpressure will be applied to reading requests or writing responses.
public static let none: Self = .init(backing: .none)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When is this an acceptable choice?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arguably never at least in production services but I thought it made sense to still offer it? I can get rid of it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The underlying async channel doesn’t even offer that

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we don't need to offer things that nobody should ever use.

Copy link
Contributor

@FranzBusch FranzBusch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I approve this for now but I'm wondering how useful just this setting is since it only applies to the outmost AsyncChannel for the request/responses. There are a few more in play here though. Let's move forward but we might want to expose more configuration here for the various bits over time.

@gjcairo
Copy link
Collaborator Author

gjcairo commented Sep 18, 2025

For the record:

  • This is really transport-specific, so we may want to move this configuration to a transport-specific configuration once we have our transport-layer abstraction in place.
  • We also need to exert backpressure when accepting inbound connections, but that will come in a future PR.

@gjcairo gjcairo merged commit 3370a94 into main Sep 23, 2025
13 of 21 checks passed
@gjcairo gjcairo deleted the backpressure branch September 23, 2025 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants